package com.newasia.management.converter;

import com.newasia.management.dal.item.entitys.ItemSpu;
import com.newasia.management.dto.productSpu.GoodDto;
import org.mapstruct.Mapper;
//import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ItemSpuConverter {
    @Mappings({})
    GoodDto item2good(ItemSpu itemSpu);

//    @Mappings({
//            @Mapping(source = "cover",target = "image"),
//    })
    List<GoodDto> item2dto(List<ItemSpu> items);


}
